<%- include('../sidebar.html') %>

<div id='content'>
  <div class='panel'>
    <div class='header'>
      <ul class='breadcrumb'>
        <li><a href='/'>主页</a><span class='divider'>/</span></li>
        <li class='active'><a href="/user/<%=user.loginname%>"><%=user.loginname%>的主页</a></li>
      </ul>
    </div>
  </div>
  <div class='panel'>
    <div class="header"><%= user.loginname %> 参与的话题</div>
    <div class="inner padding">
    <% if (typeof topics !== 'undefined' && topics.length > 0) { %>
      <%- include('../topic/list.html', { topics, pages, current_page, base: `/user/${user.loginname}/replies` }) %>
    <% } else { %>
      <div class='inner'>
        <p>无话题</p>
      </div>
    <% } %>
  </div>
  </div>
</div>
